package org.examples.java.lang;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class ObjectTest {
    Object object = new Object();

    @Test
    public void testToStringHashCode() throws Exception {
        String string = object.toString();
        String hashCode = String.format("%x", object.hashCode());

        assertTrue(string.contains(hashCode));
    }
}
